package cn.tedu.oop;

public class Test1_Inter {
    public static void main(String[] args){
        Demo d = new DemoImpl();
        d.save();
        d.delete();
    }
}
interface Demo{
    abstract public void save();
    abstract public void delete();
}
class DemoImpl implements Demo{

    @Override
    public void save() {
        System.out.println("数据保存成功！");
    }

    @Override
    public void delete() {
        System.out.println("数据删除成功！");
    }
}